package com.atguigu.gulimall.member;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zjh
 * @date 2023/3/7 10:11
 **/
public class test {
	public static void main(String[] args) {
		Map<String, String> map = new HashMap<>();
		map.put("a", "s");
		A A = JSON.parseObject(JSON.toJSONString(map), A.class);
		System.out.println(A.getB());

	}
}

@Data
class base {
	private String a;
	private String b;
}

class A extends base {
	private String b;
	{
		super.setB("999");
	}

}

class B extends base{
	private String b;

}



